<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // function daydata(name){          
        //   let arr = ['一','二','三','四','五','六','日'],
        //       num = ['1','2','3','4','5','6','7'];
        //       for (let i = 0; i < num.length; i++) {
        //     if (name == num[i] ) {
        //         name
              
        //     }
              
        //   }
        // }



        function data(){
            let date = new Date()
               day = date.getDate() + '日';
               month = date.getMonth()+1 + '月';
               year = date.getFullYear() + '年';
               week = '星期' + date.getDay();
            //    weekBig = week.toUpperCase();
            let todays = [year + month + day + week].join('-')
            
        //    let restult = `今年是${year}:${month}:${year}`
            return  {year,month,day, week }
        }
       
         let today = new data()
       console.log(today);
       console.log(today);

    //    new Date("month dd,yyyy hh:mm:ss");
//    new Date("month dd,yyyy");
  alert( new Date(2020,06,16,8,23,14))
//    new Date(yyyy,mth,dd);
//    new Date(ms);
    
    </script>
    
</body>
</html>